package com.example.myblog.service;

import com.example.myblog.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.myblog.exception.BaseException;
import com.example.myblog.vo.MessageVO;

import java.util.List;

/**
 * <p>
 * 消息管理 服务类
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
public interface MessageService extends IService<Message> {

    int sendMessage(MessageVO messageVO) throws BaseException;

    List<Message> getSendMessages() throws BaseException;

    List<Message> getReceiveMessages() throws BaseException;
}
